<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户订单页面</title>
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>

<script src="${APP_PATH}/static/js/jquery-3.1.1.min.js"></script>
<link rel="stylesheet"
	href="${APP_PATH}/static/bootstrap-3.4.1-dist/css/bootstrap.min.css">
<script
	src="${APP_PATH}/static/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
</head>
<body>
	<!-- 显示表格数据 -->
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<h1>订单页面</h1>
			</div>
			<div class="col-md-2">
				<form action="${APP_PATH}/car/getall">
					<button type="submit" class="btn btn-primary">返回首页</button>
				</form>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<table class="table table-hover">
					<tr>
						<th>用户编号</th>
						<th>订单编号</th>
						<th>汽车编号</th>
						<th>订单时间</th>
					</tr>
					<c:forEach items="${pageInfo.list }" var="order">
						<tr>
							<th>${order.uid}</th>
							<th>${order.id }</th>
							<th>${order.cid }</th>
							<th>${order.time}</th>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
		<!-- 分页信息 -->
		<div class="row">
			<!-- 分页文字信息 -->
			<div class="col-md-6">当前${pageInfo.pageNum }页,总${pageInfo.pages }页,总${pageInfo.total }条记录
			</div>
		</div>
	</div>
</body>
</html>